package com.aidex.biz.service;

import com.aidex.biz.domain.XiansuoChengben;
import com.aidex.common.core.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 线索成本设置Service接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2024-01-30
 */
public interface XiansuoChengbenService extends BaseService<XiansuoChengben> {

    /**
     * 批量删除线索成本设置
     *
     * @param ids 需要删除的线索成本设置ID集合
     * @return 结果
     */
    public int deleteXiansuoChengbenByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param xiansuoChengben 线索成本设置
     * @return 结果
     */
    public int findMaxSort(XiansuoChengben xiansuoChengben);

    public XiansuoChengben findExist(XiansuoChengben xiansuoChengben);

    @Transactional(readOnly = false)
    public int addBatch(List<XiansuoChengben> xiansuoChengbenList);
}
